﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DflyingForum.Core.Framework.DflyingPortal
{
    public class ThemeCommon
    {
        /// <summary>
        /// 返回控件完整路径,如："站点路径/Skins/主题名/" + "eg.ascx"
        /// </summary>
        /// <param name="path">主题文件夹路径</param>
        /// <param name="controlName">控件名(eg.ascx)</param>
        public static string GetControlPath(string path, string controlName)
        {
            return System.IO.Path.Combine("~/" + path, string.Format("Controls/{0}", controlName));
        }
    }
}
